package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.SkuItemVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SkuInfoEntity;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author DuGuanghan
 * @since 2024-03-01 16:21:24
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    /**
     * 分页查询
     *
     * @param params 参数
     * @return {@link PageUtils }
     * @author DuGuanghan
     * @since 2024-03-01 16:21:33
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 按条件分页查询
     *
     * @param params 参数
     * @return {@link PageUtils }
     * @author DuGuanghan
     * @since 2024-03-01 16:21:46
     */
    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 商品详情
     *
     * @param skuId SKU 编号
     * @return {@link SkuItemVO }
     * @author DuGuanghan
     * @since 2024-08-12 11:48:28
     */
    SkuItemVO item(Long skuId) throws ExecutionException, InterruptedException;
}

